package com.yuanfeng.userms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.userms.dto.UserSellerBaseDTO;
import com.yuanfeng.userms.entity.UserSellerBaseEntity;
import com.yuanfeng.userms.vo.UserSellerBaseVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Entity com.yuanfeng.userms.entity.UserSellerBase
 */
@Mapper
public interface UserSellerBaseMapper extends BaseMapper<UserSellerBaseEntity> {

    /**
     * 获取卖家账号
     * @param paraMap
     * @return
     */
    List<UserSellerBaseDTO> getSellerAccount(@Param("param") Map<String, String> paraMap);


    /**
     * 查询店铺子账号列表
     *
     * @param shopId
     * @return
     */
    List<UserSellerBaseVO> getSellerBase(Integer shopId);

    /**
     * 是否绑定门店
     * @param userMobile
     * @return
     */
    Integer selectShopGateCount(@Param("userMobile") String userMobile);
}




